<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The MysqlndUhConnection class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-uh.constants.html">预定义常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqlnduhconnection.changeuser.html">MysqlndUhConnection::changeUser</a></div>
 <div class="up"><a href="book.mysqlnd-uh.html">mysqlnd_uh</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.mysqlnduhconnection" class="reference">

 <h1 class="title">The MysqlndUhConnection class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL mysqlnd-uh &gt;= 1.0.0-alpha)</p>


  <div class="section" id="mysqlnduhconnection.intro">
   <h2 class="title">简介</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="mysqlnduhconnection.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">MysqlndUhConnection</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.changeuser.html" class="methodname">changeUser</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$user</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$password</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$database</code></span>
   , <span class="methodparam"><span class="type">bool</span> <code class="parameter">$silent</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$passwd_len</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="mysqlnduhconnection.charsetname.html" class="methodname">charsetName</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.close.html" class="methodname">close</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$close_type</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.connect.html" class="methodname">connect</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$host</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$use&quot;</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$password</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$database</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$port</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$socket</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$mysql_flags</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="mysqlnduhconnection.construct.html" class="methodname">__construct</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.endpsession.html" class="methodname">endPSession</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="mysqlnduhconnection.escapestring.html" class="methodname">escapeString</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$escape_string</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="mysqlnduhconnection.getaffectedrows.html" class="methodname">getAffectedRows</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="mysqlnduhconnection.geterrornumber.html" class="methodname">getErrorNumber</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="mysqlnduhconnection.geterrorstring.html" class="methodname">getErrorString</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="mysqlnduhconnection.getfieldcount.html" class="methodname">getFieldCount</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="mysqlnduhconnection.gethostinformation.html" class="methodname">getHostInformation</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="mysqlnduhconnection.getlastinsertid.html" class="methodname">getLastInsertId</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="mysqlnduhconnection.getlastmessage.html" class="methodname">getLastMessage</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="mysqlnduhconnection.getprotocolinformation.html" class="methodname">getProtocolInformation</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="mysqlnduhconnection.getserverinformation.html" class="methodname">getServerInformation</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="mysqlnduhconnection.getserverstatistics.html" class="methodname">getServerStatistics</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="mysqlnduhconnection.getserverversion.html" class="methodname">getServerVersion</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="mysqlnduhconnection.getsqlstate.html" class="methodname">getSqlstate</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span><span class="methodname"><a href="mysqlnduhconnection.getstatistics.html" class="methodname">getStatistics</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="mysqlnduhconnection.getthreadid.html" class="methodname">getThreadId</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="mysqlnduhconnection.getwarningcount.html" class="methodname">getWarningCount</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.init.html" class="methodname">init</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.killconnection.html" class="methodname">killConnection</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$pid</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span><span class="methodname"><a href="mysqlnduhconnection.listfields.html" class="methodname">listFields</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$table</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$achtung_wild</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="mysqlnduhconnection.listmethod.html" class="methodname">listMethod</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$achtung_wild</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$par1</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.moreresults.html" class="methodname">moreResults</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.nextresult.html" class="methodname">nextResult</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.ping.html" class="methodname">ping</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.query.html" class="methodname">query</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.queryreadresultsetheader.html" class="methodname">queryReadResultsetHeader</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type"><span class="type mysqlnd_statement">mysqlnd_statement</span></span> <code class="parameter">$mysqlnd_stmt</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.reapquery.html" class="methodname">reapQuery</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.refreshserver.html" class="methodname">refreshServer</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.restartpsession.html" class="methodname">restartPSession</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.selectdb.html" class="methodname">selectDb</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$database</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.sendclose.html" class="methodname">sendClose</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.sendquery.html" class="methodname">sendQuery</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.serverdumpdebuginformation.html" class="methodname">serverDumpDebugInformation</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.setautocommit.html" class="methodname">setAutocommit</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.setcharset.html" class="methodname">setCharset</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$charset</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.setclientoption.html" class="methodname">setClientOption</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$option</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$value</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="mysqlnduhconnection.setserveroption.html" class="methodname">setServerOption</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$option</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="mysqlnduhconnection.shutdownserver.html" class="methodname">shutdownServer</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$MYSQLND_UH_RES_MYSQLND_NAME</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$&quot;level&quot;</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.simplecommand.html" class="methodname">simpleCommand</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$command</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$arg</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$ok_packet</code></span>
   , <span class="methodparam"><span class="type">bool</span> <code class="parameter">$silent</code></span>
   , <span class="methodparam"><span class="type">bool</span> <code class="parameter">$ignore_upsert_status</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.simplecommandhandleresponse.html" class="methodname">simpleCommandHandleResponse</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$ok_packet</code></span>
   , <span class="methodparam"><span class="type">bool</span> <code class="parameter">$silent</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$command</code></span>
   , <span class="methodparam"><span class="type">bool</span> <code class="parameter">$ignore_upsert_status</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.sslset.html" class="methodname">sslSet</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$cert</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$ca</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$capath</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$cipher</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">resource</span><span class="methodname"><a href="mysqlnduhconnection.stmtinit.html" class="methodname">stmtInit</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">resource</span><span class="methodname"><a href="mysqlnduhconnection.storeresult.html" class="methodname">storeResult</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.txcommit.html" class="methodname">txCommit</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqlnduhconnection.txrollback.html" class="methodname">txRollback</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">resource</span><span class="methodname"><a href="mysqlnduhconnection.useresult.html" class="methodname">useResult</a></span>
    ( <span class="methodparam"><span class="type"><span class="type mysqlnd_connection">mysqlnd_connection</span></span> <code class="parameter">$connection</code></span>
   )</div>

   }</div>


  </div>

 </div>

 






































































































































































































































































































































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="mysqlnduhconnection.changeuser.html">MysqlndUhConnection::changeUser</a> — Changes the user of the specified mysqlnd database connection</li><li><a href="mysqlnduhconnection.charsetname.html">MysqlndUhConnection::charsetName</a> — Returns the default character set for the database connection</li><li><a href="mysqlnduhconnection.close.html">MysqlndUhConnection::close</a> — Closes a previously opened database connection</li><li><a href="mysqlnduhconnection.connect.html">MysqlndUhConnection::connect</a> — Open a new connection to the MySQL server</li><li><a href="mysqlnduhconnection.construct.html">MysqlndUhConnection::__construct</a> — The __construct purpose</li><li><a href="mysqlnduhconnection.endpsession.html">MysqlndUhConnection::endPSession</a> — End a persistent connection</li><li><a href="mysqlnduhconnection.escapestring.html">MysqlndUhConnection::escapeString</a> — Escapes special characters in a string for use in an SQL statement,
   taking into account the current charset of the connection</li><li><a href="mysqlnduhconnection.getaffectedrows.html">MysqlndUhConnection::getAffectedRows</a> — Gets the number of affected rows in a previous MySQL operation</li><li><a href="mysqlnduhconnection.geterrornumber.html">MysqlndUhConnection::getErrorNumber</a> — Returns the error code for the most recent function call</li><li><a href="mysqlnduhconnection.geterrorstring.html">MysqlndUhConnection::getErrorString</a> — Returns a string description of the last error</li><li><a href="mysqlnduhconnection.getfieldcount.html">MysqlndUhConnection::getFieldCount</a> — Returns the number of columns for the most recent query</li><li><a href="mysqlnduhconnection.gethostinformation.html">MysqlndUhConnection::getHostInformation</a> — Returns a string representing the type of connection used</li><li><a href="mysqlnduhconnection.getlastinsertid.html">MysqlndUhConnection::getLastInsertId</a> — Returns the auto generated id used in the last query.</li><li><a href="mysqlnduhconnection.getlastmessage.html">MysqlndUhConnection::getLastMessage</a> — Retrieves information about the most recently executed query</li><li><a href="mysqlnduhconnection.getprotocolinformation.html">MysqlndUhConnection::getProtocolInformation</a> — Returns the version of the MySQL protocol used</li><li><a href="mysqlnduhconnection.getserverinformation.html">MysqlndUhConnection::getServerInformation</a> — Returns the version of the MySQL server</li><li><a href="mysqlnduhconnection.getserverstatistics.html">MysqlndUhConnection::getServerStatistics</a> — Gets the current system status</li><li><a href="mysqlnduhconnection.getserverversion.html">MysqlndUhConnection::getServerVersion</a> — Returns the version of the MySQL server as an integer</li><li><a href="mysqlnduhconnection.getsqlstate.html">MysqlndUhConnection::getSqlstate</a> — Returns the SQLSTATE error from previous MySQL operation</li><li><a href="mysqlnduhconnection.getstatistics.html">MysqlndUhConnection::getStatistics</a> — Returns statistics about the client connection.</li><li><a href="mysqlnduhconnection.getthreadid.html">MysqlndUhConnection::getThreadId</a> — Returns the thread ID for the current connection</li><li><a href="mysqlnduhconnection.getwarningcount.html">MysqlndUhConnection::getWarningCount</a> — Returns the number of warnings from the last query for the given link</li><li><a href="mysqlnduhconnection.init.html">MysqlndUhConnection::init</a> — Initialize mysqlnd connection</li><li><a href="mysqlnduhconnection.killconnection.html">MysqlndUhConnection::killConnection</a> — Asks the server to kill a MySQL thread</li><li><a href="mysqlnduhconnection.listfields.html">MysqlndUhConnection::listFields</a> — List MySQL table fields</li><li><a href="mysqlnduhconnection.listmethod.html">MysqlndUhConnection::listMethod</a> — Wrapper for assorted list commands</li><li><a href="mysqlnduhconnection.moreresults.html">MysqlndUhConnection::moreResults</a> — Check if there are any more query results from a multi query</li><li><a href="mysqlnduhconnection.nextresult.html">MysqlndUhConnection::nextResult</a> — Prepare next result from multi_query</li><li><a href="mysqlnduhconnection.ping.html">MysqlndUhConnection::ping</a> — Pings a server connection, or tries to reconnect if the connection has gone down</li><li><a href="mysqlnduhconnection.query.html">MysqlndUhConnection::query</a> — Performs a query on the database</li><li><a href="mysqlnduhconnection.queryreadresultsetheader.html">MysqlndUhConnection::queryReadResultsetHeader</a> — Read a result set header</li><li><a href="mysqlnduhconnection.reapquery.html">MysqlndUhConnection::reapQuery</a> — Get result from async query</li><li><a href="mysqlnduhconnection.refreshserver.html">MysqlndUhConnection::refreshServer</a> — Flush or reset tables and caches</li><li><a href="mysqlnduhconnection.restartpsession.html">MysqlndUhConnection::restartPSession</a> — Restart a persistent mysqlnd connection</li><li><a href="mysqlnduhconnection.selectdb.html">MysqlndUhConnection::selectDb</a> — Selects the default database for database queries</li><li><a href="mysqlnduhconnection.sendclose.html">MysqlndUhConnection::sendClose</a> — Sends a close command to MySQL</li><li><a href="mysqlnduhconnection.sendquery.html">MysqlndUhConnection::sendQuery</a> — Sends a query to MySQL</li><li><a href="mysqlnduhconnection.serverdumpdebuginformation.html">MysqlndUhConnection::serverDumpDebugInformation</a> — Dump debugging information into the log for the MySQL server</li><li><a href="mysqlnduhconnection.setautocommit.html">MysqlndUhConnection::setAutocommit</a> — Turns on or off auto-committing database modifications</li><li><a href="mysqlnduhconnection.setcharset.html">MysqlndUhConnection::setCharset</a> — Sets the default client character set</li><li><a href="mysqlnduhconnection.setclientoption.html">MysqlndUhConnection::setClientOption</a> — Sets a client option</li><li><a href="mysqlnduhconnection.setserveroption.html">MysqlndUhConnection::setServerOption</a> — Sets a server option</li><li><a href="mysqlnduhconnection.shutdownserver.html">MysqlndUhConnection::shutdownServer</a> — The shutdownServer purpose</li><li><a href="mysqlnduhconnection.simplecommand.html">MysqlndUhConnection::simpleCommand</a> — Sends a basic COM_* command</li><li><a href="mysqlnduhconnection.simplecommandhandleresponse.html">MysqlndUhConnection::simpleCommandHandleResponse</a> — Process a response for a basic COM_* command send to the client</li><li><a href="mysqlnduhconnection.sslset.html">MysqlndUhConnection::sslSet</a> — Used for establishing secure connections using SSL</li><li><a href="mysqlnduhconnection.stmtinit.html">MysqlndUhConnection::stmtInit</a> — Initializes a statement and returns a resource for use with mysqli_statement::prepare</li><li><a href="mysqlnduhconnection.storeresult.html">MysqlndUhConnection::storeResult</a> — Transfers a result set from the last query</li><li><a href="mysqlnduhconnection.txcommit.html">MysqlndUhConnection::txCommit</a> — Commits the current transaction</li><li><a href="mysqlnduhconnection.txrollback.html">MysqlndUhConnection::txRollback</a> — Rolls back current transaction</li><li><a href="mysqlnduhconnection.useresult.html">MysqlndUhConnection::useResult</a> — Initiate a result set retrieval</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-uh.constants.html">预定义常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqlnduhconnection.changeuser.html">MysqlndUhConnection::changeUser</a></div>
 <div class="up"><a href="book.mysqlnd-uh.html">mysqlnd_uh</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
